//
//  CustomBtn.m
//  busRoute
//
//  Created by 物恋网 on 16/11/17.
//  Copyright © 2016年 wlw. All rights reserved.
//

#import "CustomBtn.h"
#import "Masonry.h"
@implementation CustomBtn
-(id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _titleLab = [ZLHelp getLabel:@"" withFontSize:TEXT_FONT withFrame:CGRectZero withColor:RGBACOLOR(0x66, 0x66, 0x66, 1.0)];
        [self addSubview:_titleLab];
        [_titleLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self).offset(5);
            make.centerY.equalTo(self);
        }];
        _imgView = [[UIImageView alloc] init];
        _imgView.image = [UIImage imageNamed:@"mainpage_jt_down"];
        [self addSubview:_imgView];
        [_imgView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self);
            make.left.equalTo(_titleLab.mas_right).offset(-2);
        }];
        
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
